feat(nunit, xunit, specflow, reqnroll): titlePath #574
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context
This PR adds a new property called
titlePathtoTestResultand makes Allure NUnit, Allure xUnit.net, Allure SpecFlow, and Allure.Reqnroll fill it.More about
titlePath: allure-framework/allure-js#1260.NUnit
For an NUnit test, the
titlePathfollows the NUnitITesthierarchy. Only nodes at theTestSuitelevel or higher are translated intotitlePath.Example:
Given a test assembly called
MyTestAssemblyand the following code:The
titlePathof both tests will be as follows:The test class part can be renamed from code via the
TestFixture.TestNameproperty.xUnit.net
For xUnit.net tests, the
titlePathis defined by the tests' declaring type (a test class). It contains the assembly name, namespace elements, and the class name.Reqnroll and SpecFlow
For Reqnroll and SpecFlow tests, the
titlePathcontains the assembly name, the parent directories of the feature file inside the assembly, and the feature name. If the feature is nameless, theFeatureplaceholder is used instead.Checklist